package com.bawei.mvvmzonghe.entity;

import java.util.List;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * @Author : yaotianxue
 * @Time : On 2023/9/14 09:57
 * @Description : GoodsEntity
 */
public class GoodsEntity {

    private int endRow;
    private boolean hasNextPage;
    private boolean hasPreviousPage;
    private boolean isFirstPage;
    private boolean isLastPage;
    private List<ListBean> list;
    private int navigateFirstPage;
    private int navigateLastPage;
    private int navigatePages;
    private List<Integer> navigatepageNums;
    private int nextPage;
    private int pageNum;
    private int pageSize;
    private int pages;
    private int prePage;
    private int size;
    private int startRow;
    private int total;

    public int getEndRow() {
        return endRow;
    }

    public void setEndRow(int endRow) {
        this.endRow = endRow;
    }

    public boolean isHasNextPage() {
        return hasNextPage;
    }

    public void setHasNextPage(boolean hasNextPage) {
        this.hasNextPage = hasNextPage;
    }

    public boolean isHasPreviousPage() {
        return hasPreviousPage;
    }

    public void setHasPreviousPage(boolean hasPreviousPage) {
        this.hasPreviousPage = hasPreviousPage;
    }

    public boolean isIsFirstPage() {
        return isFirstPage;
    }

    public void setIsFirstPage(boolean isFirstPage) {
        this.isFirstPage = isFirstPage;
    }

    public boolean isIsLastPage() {
        return isLastPage;
    }

    public void setIsLastPage(boolean isLastPage) {
        this.isLastPage = isLastPage;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public int getNavigateFirstPage() {
        return navigateFirstPage;
    }

    public void setNavigateFirstPage(int navigateFirstPage) {
        this.navigateFirstPage = navigateFirstPage;
    }

    public int getNavigateLastPage() {
        return navigateLastPage;
    }

    public void setNavigateLastPage(int navigateLastPage) {
        this.navigateLastPage = navigateLastPage;
    }

    public int getNavigatePages() {
        return navigatePages;
    }

    public void setNavigatePages(int navigatePages) {
        this.navigatePages = navigatePages;
    }

    public List<Integer> getNavigatepageNums() {
        return navigatepageNums;
    }

    public void setNavigatepageNums(List<Integer> navigatepageNums) {
        this.navigatepageNums = navigatepageNums;
    }

    public int getNextPage() {
        return nextPage;
    }

    public void setNextPage(int nextPage) {
        this.nextPage = nextPage;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getPrePage() {
        return prePage;
    }

    public void setPrePage(int prePage) {
        this.prePage = prePage;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getStartRow() {
        return startRow;
    }

    public void setStartRow(int startRow) {
        this.startRow = startRow;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }


    @Entity(tableName = "goods")
    public static class ListBean {
        @ColumnInfo(name = "categoryId",typeAffinity = ColumnInfo.INTEGER)
        private int categoryId;
        @ColumnInfo(name = "goodsBanner",typeAffinity = ColumnInfo.TEXT)
        private String goodsBanner;
        @ColumnInfo(name = "goodsCode",typeAffinity = ColumnInfo.TEXT)
        private String goodsCode;
        @ColumnInfo(name = "goodsDefaultIcon",typeAffinity = ColumnInfo.TEXT)
        private String goodsDefaultIcon;
        @ColumnInfo(name = "goodsDefaultPrice",typeAffinity = ColumnInfo.TEXT)
        private String goodsDefaultPrice;
        @ColumnInfo(name = "goodsDefaultSku",typeAffinity = ColumnInfo.TEXT)
        private String goodsDefaultSku;
        @ColumnInfo(name = "goodsDesc",typeAffinity = ColumnInfo.TEXT)
        private String goodsDesc;
        @ColumnInfo(name = "goodsDetailOne",typeAffinity = ColumnInfo.TEXT)
        private String goodsDetailOne;
        @ColumnInfo(name = "goodsDetailTwo",typeAffinity = ColumnInfo.TEXT)
        private String goodsDetailTwo;
        @ColumnInfo(name = "goodsSalesCount",typeAffinity = ColumnInfo.INTEGER)
        private int goodsSalesCount;
        @ColumnInfo(name = "goodsStockCount",typeAffinity = ColumnInfo.INTEGER)
        private int goodsStockCount;
        @PrimaryKey
        @ColumnInfo(name = "id",typeAffinity = ColumnInfo.INTEGER)
        private int id;

        public int getCategoryId() {
            return categoryId;
        }

        public void setCategoryId(int categoryId) {
            this.categoryId = categoryId;
        }

        public String getGoodsBanner() {
            return goodsBanner;
        }

        public void setGoodsBanner(String goodsBanner) {
            this.goodsBanner = goodsBanner;
        }

        public String getGoodsCode() {
            return goodsCode;
        }

        public void setGoodsCode(String goodsCode) {
            this.goodsCode = goodsCode;
        }

        public String getGoodsDefaultIcon() {
            return goodsDefaultIcon;
        }

        public void setGoodsDefaultIcon(String goodsDefaultIcon) {
            this.goodsDefaultIcon = goodsDefaultIcon;
        }

        public String getGoodsDefaultPrice() {
            return goodsDefaultPrice;
        }

        public void setGoodsDefaultPrice(String goodsDefaultPrice) {
            this.goodsDefaultPrice = goodsDefaultPrice;
        }

        public String getGoodsDefaultSku() {
            return goodsDefaultSku;
        }

        public void setGoodsDefaultSku(String goodsDefaultSku) {
            this.goodsDefaultSku = goodsDefaultSku;
        }

        public String getGoodsDesc() {
            return goodsDesc;
        }

        public void setGoodsDesc(String goodsDesc) {
            this.goodsDesc = goodsDesc;
        }

        public String getGoodsDetailOne() {
            return goodsDetailOne;
        }

        public void setGoodsDetailOne(String goodsDetailOne) {
            this.goodsDetailOne = goodsDetailOne;
        }

        public String getGoodsDetailTwo() {
            return goodsDetailTwo;
        }

        public void setGoodsDetailTwo(String goodsDetailTwo) {
            this.goodsDetailTwo = goodsDetailTwo;
        }

        public int getGoodsSalesCount() {
            return goodsSalesCount;
        }

        public void setGoodsSalesCount(int goodsSalesCount) {
            this.goodsSalesCount = goodsSalesCount;
        }

        public int getGoodsStockCount() {
            return goodsStockCount;
        }

        public void setGoodsStockCount(int goodsStockCount) {
            this.goodsStockCount = goodsStockCount;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }
}
